from fastapi import APIRouter,Request

router = APIRouter()


@router.get("/items/{item_id}")
async def read_item(item_id: int, request: Request):
    client_host = request.client.host
    return {
        "client": client_host,
        "item_id": item_id
    }
